package br.com.divulgaqui.managedbean;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean
@RequestScoped
public class ConfiguracaoManagedBean implements Serializable{
	
	private static final long serialVersionUID = 1L;	
	private final String DEFAULT_THEME = "aristo";
	private String theme;
	
	public ConfiguracaoManagedBean(){		
	}
	
	public void configTheme(String theme){	
		if(theme != null && !theme.trim().equals("")){
			setTheme(theme);
		}else{
			setTheme(DEFAULT_THEME);
		}		
	}
	
	public String getTheme() {
		return theme;
	}
	public void setTheme(String theme) {
		this.theme = theme;
	}	
}